package pers.vic.practice.module.student.service;

import org.springframework.stereotype.Service;
import pers.vic.boot.base.service.BaseService;
import pers.vic.practice.module.student.mapper.SStudentInfoMapper;  
import pers.vic.practice.module.student.model.SStudentInfo;

/**
 * @description: 学生详细信息Service
 * @author Vic.xu
 * @date: 2022-04-22 14:10
 */
@Service
public class SStudentInfoService extends BaseService<SStudentInfoMapper, SStudentInfo>{

    @Override
    protected boolean hasAttachment() {
        return false;
    }

    public Integer findId(String number){
        return mapper.findId(number);
    }

    public SStudentInfo findByNumber(String number){
        Integer id = mapper.findId(number);
        if (id != null) {
            return findById(id);
        }
        return  null;
    }

}
